package com.wwcom.darteagle.model;

public class Score {
	private int[] dartScore;
	private boolean[] isDouble;
	private boolean[] isTreble;
	
	public Score() {		
		initialiseSelf();
	}
	
	public Score( int[] dartScore, boolean[] isDouble, boolean[] isTreble) {
		initialiseSelf();
		this.dartScore= dartScore;
		this.isDouble= isDouble;
		this.isTreble= isTreble;
	}
	
	public Score(Score other) {
		initialiseSelf();
		dartScore[0]= other.dartScore[0];
		dartScore[1]= other.dartScore[1];
		dartScore[2]= other.dartScore[2];
		isDouble[0]= other.isDouble[0];
		isDouble[1]= other.isDouble[1];
		isDouble[2]= other.isDouble[2];
		isTreble[0]= other.isTreble[0];
		isTreble[1]= other.isTreble[1];
		isTreble[2]= other.isTreble[2];
	}
	
	private void initialiseSelf() {
		dartScore= new int[3];
		dartScore[0]= -1;
		dartScore[1]= -1;
		dartScore[2]= -1;
		isDouble= new boolean[3];
		isDouble[0]= false;
		isDouble[1]= false;
		isDouble[2]= false;
		isTreble= new boolean[3];
		isTreble[0]= false;
		isTreble[1]= false;
		isTreble[2]= false;
	}
	    
	//accessors
	public int[] getDartScore() {
		return dartScore;
	}

	public void setDartScore(int[] dartScore) {
		this.dartScore = dartScore;
	}

	public boolean[] getIsDouble() {
		return isDouble;
	}

	public void setIsDouble(boolean[] isDouble) {
		this.isDouble = isDouble;
	}

	public boolean[] getIsTreble() {
		return isTreble;
	}

	public void setIsTreble(boolean[] isTreble) {
		this.isTreble = isTreble;
	}
	
}
